package com.service;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.common.utils.DateUtils;
import com.common.utils.base.UuidUtil;
import com.entity.FileRel;
import com.service.base.BaseServiceImp;

@Service("FileRelService")
public class FileRelServiceImpl extends BaseServiceImp<FileRel> implements FileRelService{

	@Override
	@Transactional
	public String insert(FileRel o) {
		o.setId(UuidUtil.get32UUID());
		o.setUploadTime(DateUtils.getDate("yyyy/MM/dd HH:mm:ss"));
		baseDao.insert(o);
		return o.getId();
	}
	
}
